<?php
$host = '43.143.250.149';
$dbname = 'blog';
$username = 'blog';
$password = 'DGHPyGSkfSHEj32X';

try {
    $pdo = new PDO("mysql:host=$host;port=33061;dbname=$dbname;charset=utf8", $username, $password);
    $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
    die("数据库连接失败: " . $e->getMessage());
}
?>